﻿#pragma strict

var turnSpeed : float = 3;
var zoomSpeed : float = 3;

function Start () {

}

function Update () {
	if (Input.GetKey(KeyCode.W)) {
		this.transform.Rotate(turnSpeed,0,0);
	}		
	if (Input.GetKey(KeyCode.A)) {
		this.transform.Rotate(0,-turnSpeed,0);
	}
	if (Input.GetKey(KeyCode.D)) {
		this.transform.Rotate(0,turnSpeed,0);
	}
	if (Input.GetKey(KeyCode.S)) {
		this.transform.Rotate(-turnSpeed,0,0);
	}
	if (Input.GetKey(KeyCode.Q)) {
		this.transform.Rotate(0,0,-turnSpeed);
	}
    if (Input.GetKey(KeyCode.E)) {
		this.transform.Rotate(0,0,turnSpeed);
	}
	if (Input.GetKey(KeyCode.Z)) {
		this.transform.Translate(-transform.forward*zoomSpeed);
	}
	if (Input.GetKey(KeyCode.X)) {
		this.transform.Translate(transform.forward*zoomSpeed);
	}
}